﻿namespace Agnes.MyDocsLib
{
	public class MyDocsLibManager
    {
        #region 私有成员

	    private static MyDocsLibManager _myDocsLibManager = null;

        private MyDocsLibManager()
        {
            ArticleManager = new ArticleManager();
        }

        #endregion

        #region 属性

        public ArticleManager ArticleManager { get; private set; }

        #endregion

        /// <summary>
        /// 返回唯一实例
        /// </summary>
        public static MyDocsLibManager Instance
        {
            get
            {
                if (_myDocsLibManager == null)
                {
                    _myDocsLibManager = new MyDocsLibManager();
                }

                return _myDocsLibManager;
            }
        }
	}
}
